import request from '@/utils/request'

// 查询存储班车基础配置列表
export function listBus(query) {
  return request({
    url: '/infomanagement/bus/list',
    method: 'get',
    params: query
  })
}

// 查询存储班车基础配置详细
export function getBus(id) {
  return request({
    url: '/infomanagement/bus/' + id,
    method: 'get'
  })
}

// 新增存储班车基础配置
export function addBus(data) {
  return request({
    url: '/infomanagement/bus',
    method: 'post',
    data: data
  })
}

// 修改存储班车基础配置
export function updateBus(data) {
  return request({
    url: '/infomanagement/bus',
    method: 'put',
    data: data
  })
}

// 删除存储班车基础配置
export function delBus(id) {
  return request({
    url: '/infomanagement/bus/' + id,
    method: 'delete'
  })
}
